"""
两个数组，存放对角线坐标，判断是否有重合
"""


def func(arrA, arrB):
    x1, y1 = arrA[0], arrA[1]
    x2, y2 = arrA[2], arrA[3]
    x3, y3 = arrB[0], arrB[1]
    x4, y4 = arrB[2], arrB[3]

    if min(x4, x2) - max(x1, x3) > 0 and min(y4, y2) - max(y1, y3) > 0:
        return True
    return False


if __name__ == '__main__':
    arrA = [0, 1, 1, 2]
    arrB = [2, 2, 3, 3]
    arrA = [0, 2, 2, 3]
    arrB = [1, 2, 3, 3]
    print(func(arrA, arrB))
